package edu.zzuli.common;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * 
 */
public class Constants_core {
	
	// 存储登录IP，去登录ip都到session里去LOGIN_IP对应的值
	public final static String LOGIN_IP = "Session_Login_Remote_IP";
	
	// 是否登录(0-未登录 1-已登录)
	public final static int GG_CZYB_SFDL_WDL = 0;

	public final static int GG_CZYB_SFDL_YDL = 1;
	
	private static Map<Integer, String> mapGG_CZYB_SFDL_DL;
	static {
		mapGG_CZYB_SFDL_DL = new LinkedHashMap<Integer, String>();
		mapGG_CZYB_SFDL_DL.put(GG_CZYB_SFDL_WDL, "退出");
		mapGG_CZYB_SFDL_DL.put(GG_CZYB_SFDL_YDL, "登录");
	}
	public static String getMapGG_CZYB_SFDL_DL(Integer zxbz){
		return mapGG_CZYB_SFDL_DL.get(zxbz);
	}
	
	//组织机构类别角色类别(1-运维超级管理 2-管理员 3-用户)
	// 对应于GG_JGBH_JGLB
	public static final int JGSF_YW = 1;
	
	public static final int JGSF_GLY = 2;
	
	public static final int JGSF_YH = 3;

	public static Map<Integer, String> MAP_JGSF = new LinkedHashMap<Integer, String>();
	static {
		MAP_JGSF.put(JGSF_YW, "运维超级管理");
		MAP_JGSF.put(JGSF_GLY, "管理员");
		MAP_JGSF.put(JGSF_YH, "用户");
	}

	public static String getJGSFNameByID(Integer id) {
		return MAP_JGSF.get(id);
	}
	
	//GG_JGBH.SYBZ 使用标志(1--在用;0--停用)
	public static final int GG_JGBH_SYBZ_TY = 0;

	public static final int GG_JGBH_SYBZ_ZY = 1;
	
	/**
	 * 非结构换文档起始路径
	 */
	public static String FILEPATH;

	/**
	 * 系统处理非结构化文档的临时目录
	 */
	public static String GG_TEMP_PATH = "";


	public static String ContextRealPath = "";

	/**
	 * 系统标识
	 */
	public static String WEB_APP_ID = "";


	public final static String WEB_APP_ID_PH = "zznw_ph";

	public final static String WEB_APP_ID_APP = "kh_app";

	public final static String WEB_APP_ID_WEB = "kh_web";

	public static String WEB_APP_TITLE = "";

	public static String APP_URL = "";

	public static String APP_CONTEXTPATH = "";

	public static String reportUrl = "";

	public static String reportVPNUrl = "";
	
	public static String CMS_URL = "";
	
	public static String CMS_WEB_ID = "";
	//版权信息
	public static String Version_Info = "";
	
	public static String CA_KEYID_PREFIX = "";

	/**
	 * 校验码的存储标识
	 */
	public final static String RANDOM_CHECKCODE = "RANDOM_CHECKCODE_GENERATER";

	/**
	 * 有效的操作员标识
	 */
	public final static int OPERATOR_VALID_BZ = 1;
	
	/**
	 * 分页toolbar中的常量
	 */
	public static Map<Integer, Integer> PageSizeOptions = new LinkedHashMap<Integer, Integer>();
	static {
		for (int i = 1; i <= 24; i++) {
			PageSizeOptions.put(i, i);
		}
		for (int i = 25; i <= 50; i += 5) {
			PageSizeOptions.put(i, i);
		}
		PageSizeOptions.put(100, 100);
	}
	
	//chart图形类别(普通类型)
	public static final Map<String, String> FUSIONCHART_CHARTTYPE_MAP = new LinkedHashMap<String, String>();

	static {
		FUSIONCHART_CHARTTYPE_MAP.put("Column2D.swf", "垂直直方图");
		FUSIONCHART_CHARTTYPE_MAP.put("Column3D.swf", "垂直3D直方图");
		FUSIONCHART_CHARTTYPE_MAP.put("Line.swf", "线段图");
		FUSIONCHART_CHARTTYPE_MAP.put("Area2D.swf", "区域图");
		FUSIONCHART_CHARTTYPE_MAP.put("Pie2D.swf", "饼图");
		FUSIONCHART_CHARTTYPE_MAP.put("Pie3D.swf", "3D饼图");
		FUSIONCHART_CHARTTYPE_MAP.put("Doughnut2D.swf", "环形图");
		FUSIONCHART_CHARTTYPE_MAP.put("Doughnut3D.swf", "3D环形图");
	}
	
	//chart图形类别(普通类型)
	public static final Map<String, String> FUSIONCHART_CHARTTYPE_Line_MAP = new LinkedHashMap<String, String>();

	static {
		FUSIONCHART_CHARTTYPE_Line_MAP.put("Line.swf", "线段图");
		FUSIONCHART_CHARTTYPE_Line_MAP.put("Area2D.swf", "区域图");
		FUSIONCHART_CHARTTYPE_Line_MAP.put("Column2D.swf", "垂直直方图");
	}
	//chart图形类别(普通类型)
	public static final Map<String, String> FUSIONCHART_MS_CHARTTYPE_MAP = new LinkedHashMap<String, String>();

	static {
		//FUSIONCHART_MS_CHARTTYPE_MAP.put("MSColumn2D.swf", "垂直直方图");
		FUSIONCHART_MS_CHARTTYPE_MAP.put("MSColumn3D.swf", "垂直3D直方图");
		FUSIONCHART_MS_CHARTTYPE_MAP.put("MSArea.swf", "区域图"); 
		FUSIONCHART_MS_CHARTTYPE_MAP.put("MSLine.swf", "线段图");
	}    
  //	chart图形类别(普通类型)
	public static final Map<String, String> FUSIONCHART_CHARTTYPE_SCROLL_LINE_MAP = new LinkedHashMap<String, String>();

	static {
		FUSIONCHART_CHARTTYPE_SCROLL_LINE_MAP.put("ScrollLine2D.swf", "滚动线段图");
		FUSIONCHART_CHARTTYPE_SCROLL_LINE_MAP.put("ScrollArea2D.swf", "滚动区域图");
	}
	
	//chart图形类别（滚动条）
	public static final  Map<String,String> FUSIONCHART_CHARTTYPE_SCROLL_MAP = new LinkedHashMap<String, String>();
	static{
		FUSIONCHART_CHARTTYPE_SCROLL_MAP.put("ScrollColumn2D.swf", "垂直滚动直方图");
		FUSIONCHART_CHARTTYPE_SCROLL_MAP.put("ScrollLine2D.swf", "滚动线段图");
		FUSIONCHART_CHARTTYPE_SCROLL_MAP.put("ScrollArea2D.swf", "滚动区域图");
		FUSIONCHART_CHARTTYPE_SCROLL_MAP.put("ScrollStackedColumn2D.swf", "层叠垂直滚动图");
		FUSIONCHART_CHARTTYPE_SCROLL_MAP.put("ScrollCombi2D.swf", "线段垂直滚动图");
		FUSIONCHART_CHARTTYPE_SCROLL_MAP.put("ScrollCombiDY2D.swf", "线段直方滚动图");
	}
	
	//chart图形类别（滚动条）
	public static final  Map<String,String> FUSIONCHART_CHARTTYPE_MS_SCROLL_MAP = new LinkedHashMap<String, String>();
	static{
		FUSIONCHART_CHARTTYPE_MS_SCROLL_MAP.put("ScrollLine2D.swf", "滚动线段图");
		FUSIONCHART_CHARTTYPE_MS_SCROLL_MAP.put("ScrollArea2D.swf", "滚动区域图");
		FUSIONCHART_CHARTTYPE_MS_SCROLL_MAP.put("ScrollColumn2D.swf", "垂直滚动直方图");
//		FUSIONCHART_CHARTTYPE_MS_SCROLL_MAP.put("ScrollStackedColumn2D.swf", "层叠垂直滚动图");
//		FUSIONCHART_CHARTTYPE_MS_SCROLL_MAP.put("ScrollCombi2D.swf", "线段垂直滚动图");
//		FUSIONCHART_CHARTTYPE_MS_SCROLL_MAP.put("ScrollCombiDY2D.swf", "线段直方滚动图");
	}
	//chart图形类别(普通类型)
	public static final Map<String, String> FUSIONCHART_MS_CHARTTYPE_SPLINE_MAP = new LinkedHashMap<String, String>();

	static {  
		FUSIONCHART_MS_CHARTTYPE_SPLINE_MAP.put("MSLine.swf", "线段图");
		FUSIONCHART_MS_CHARTTYPE_SPLINE_MAP.put("MSSplineArea.swf", "区域图"); 
		FUSIONCHART_MS_CHARTTYPE_SPLINE_MAP.put("MSColumn2D.swf", "垂直直方图");
	} 

}